package com.nervenets.web.enumeration;

import com.nervenets.web.i18n.Translator;

/**
 * Created by joe on 17-3-16.
 */
public enum OperateType {
    recharge,//充值
    withdraw,//提现
    dividends,//分成
    movieBuy,//购买影片
    restoreWithdraw,//提现退款
    human,//人工
    idAuth,//实名认证
    profit,//收益
    refundTailConfirm,//未确认尾款退款
    withdrawFee,//提现手续费
    rewardWithdrawFee,//奖励金提现手续费
    rewardWithdraw,//奖励金提现
    ;

    public String getName() {
        return this.name();
    }

    public String getLabel() {
        return Translator.translate(this);
    }

    public static boolean isTrueIncome(OperateType operateType) {
        return !recharge.equals(operateType) && !restoreWithdraw.equals(operateType);
    }
}
